package com.qingfeng.client.dao;
import com.qingfeng.base.mpUtil.FBaseMapper;
import com.qingfeng.client.bean.Seller;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author zhangyuefei
 * @version 1.0
 * @date 2020/2/25 10:15 上午
 */
public interface SellerMapper extends FBaseMapper<Seller> {

    Seller getByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password, @Param("countryPhoneCode") String countryPhoneCode);

    Seller getByNameAndPassword(@Param("name") String name, @Param("password") String password);

    List<Seller> selectByName(@Param("name")String name);



    int updateRealNameAndAuthTypeAndAuthAccountById(@Param("seller") Seller seller, @Param("id") Long id);

    int updatePasswordByPhone(@Param("updatedPassword") String updatedPassword, @Param("phone") String phone);

    int deleteByPhoneAndPassword(@Param("phone") String phone, @Param("password") String password);

    void updateEnableById(@Param("enable")Integer enable, @Param("id")Long id);


    //登录验证
    Seller loginUserByAccount(@Param("account")String account);
    //获取用户信息
    Seller getUserById(@Param("id")Long id);

    List<Seller> selectByPhone(@Param("phone")String phone);

    List<Seller> selectByAuthAccount(@Param("authAccount")String authAccount);




}
